package com.hutao.manage.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.hutao.manage.pojo.MrTransfusionObservation;
import com.hutao.manage.pojo.MrTransfusionObservationExample;
import com.hutao.manage.query.ApplyReportQryPackParam;

public interface MrTransfusionObservationMapper {
    /**
     *
     * @代码生成于 2020-09-29
     */
    int countByExample(MrTransfusionObservationExample example);

    /**
     *
     * @代码生成于 2020-09-29
     */
    int deleteByExample(MrTransfusionObservationExample example);

    /**
     *
     * @代码生成于 2020-09-29
     */
    int deleteByPrimaryKey(Long id);

    /**
     *
     * @代码生成于 2020-09-29
     */
    int insert(MrTransfusionObservation record);

    /**
     *
     * @代码生成于 2020-09-29
     */
    int insertSelective(MrTransfusionObservation record);

    /**
     *
     * @代码生成于 2020-09-29
     */
    List<MrTransfusionObservation> selectByExample(MrTransfusionObservationExample example);

    /**
     *
     * @代码生成于 2020-09-29
     */
    MrTransfusionObservation selectByPrimaryKey(Long id);

    /**
     *
     * @代码生成于 2020-09-29
     */
    int updateByExampleSelective(@Param("record") MrTransfusionObservation record, @Param("example") MrTransfusionObservationExample example);

    /**
     *
     * @代码生成于 2020-09-29
     */
    int updateByExample(@Param("record") MrTransfusionObservation record, @Param("example") MrTransfusionObservationExample example);

    /**
     *
     * @代码生成于 2020-09-29
     */
    int updateByPrimaryKeySelective(MrTransfusionObservation record);

    /**
     *
     * @代码生成于 2020-09-29
     */
    int updateByPrimaryKey(MrTransfusionObservation record);
    
    List<MrTransfusionObservation>  getMrTransfusionObservationPage(@Param("startIndex")int startIndex,@Param("pageSize")int pageSize);
    
    
    List<ApplyReportQryPackParam> getPatNoByOutTime(@Param("startDate")String startDate,@Param("endDate")String endDate);
    

    int getObservationCount(@Param("applyNo")String applyNo,@Param("bloodBag")String bloodBag);
    
    String getOnlyIdByPatientId(@Param("patientId")String patientId);

	Long getSerialNumberByPatientId(@Param("patientId")String patientId);
}